package org.cuatrovientos.erp.model;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class Currency {
@Min(value=1,message="{currency.id.error}")	
private int id;
@NotNull(message="{currency.name.error}")
 private String name;
@NotNull(message="{currency.abbreviation.error}")
private String  abbreviation;
@Min(value=0,message="{currency.changeeuro.error}")	
private double changeeuro;
@Min(value=1,message="{currency.idcountry.error}")	
private int idcountry;
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getAbbreviation() {
	return abbreviation;
}
public void setAbbreviation(String abbreviation) {
	this.abbreviation = abbreviation;
}
public double getChangeeuro() {
	return changeeuro;
}
public void setChangeeuro(double changeeuro) {
	this.changeeuro = changeeuro;
}
public int getIdcountry() {
	return idcountry;
}
public void setIdcountry(int idcountry) {
	this.idcountry = idcountry;
}
public Currency(){
	
}
public Currency(int id, String name, String abbreviation, double changeeuro,
		int idcountry) {
	super();
	this.id = id;
	this.name = name;
	this.abbreviation = abbreviation;
	this.changeeuro = changeeuro;
	this.idcountry = idcountry;
}




}
